/**
 * 
 */
package com.newture.lxz.errors;


/**
 * @author xiao.hu
 *
 */
public class AppException extends IllegalStateException {

	private static final long serialVersionUID = 8029525230455039303L;

	private String errorCode;
	private String parametersDetails;
	private String developmentDetails;
	
	public AppException(String errorCode, String parametersDetails, String developmentDetails) {
		this.errorCode = errorCode;
		this.parametersDetails = parametersDetails;
		this.developmentDetails = String.format(developmentDetails + "( %s )", parametersDetails);
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getDevelopmentDetails() {
		return developmentDetails;
	}

	public void setDevelopmentDetails(String developmentDetails) {
		this.developmentDetails = developmentDetails;
	}

	public String getParametersDetails() {
		return parametersDetails;
	}

	public void setParametersDetails(String parametersDetails) {
		this.parametersDetails = parametersDetails;
	}
}
